keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

User busy issue for incoming call in A400P 4 FXO card

11 years 4 months ago #8470 by maselva2012
Demsg shows following detail:
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.3.0.1
ACPI: PCI Interrupt 0000:01:06.0[A] -> GSI 18 (level, low) -> IRQ 169
Freshmaker version: 71
Freshmaker passed register test
Module 0: Installed -- AUTO FXO (FCC mode)
Module 1: Installed -- AUTO FXO (FCC mode)
Module 2: Installed -- AUTO FXO (FCC mode)
Module 3: Installed -- AUTO FXO (FCC mode)
Found a Wildcard TDM: Wildcard TDM400P REV E/F (4 modules)
dahdi_transcode: Loaded.
INFO-xpp: revision Unknown MAX_XPDS=64 (8*8)
INFO-xpp: FEATURE: without BRISTUFF support
INFO-xpp: FEATURE: with PROTOCOL_DEBUG
INFO-xpp: FEATURE: with sync_tick() from DAHDI
INFO-xpp_usb: revision Unknown
usbcore: registered new driver xpp_usb
dahdi: Registered tone zone 0 (United States / North America)
dahdi_echocan_mg2: Registered echo canceler 'MG2'
eth0: no IPv6 routers present
Bluetooth: Core ver 2.10
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized


/etc/asterisk/chan_dahdi.conf
;# Flash Operator Panel will parse this file for dahdi trunk buttons
;# AMPLABEL will be used for the display labels on the buttons

;# %c Dahdi Channel number
;# %n Line number
;# %N Line number, but restart counter
;# Example:
;# ;AMPLABEL:Channel %c - Button %n

;# For Dahdi/* buttons use the following
;# (where x=number of buttons to dislpay)
;# ;AMPWILDCARDLABEL(x):MyLabel


[channels]
language=en

; include dahdi extensions defined in FreePBX
#include dahdi-channels.conf
#include chan_dahdi_additional.conf

; XTDM20B Port #1,2 plugged into PSTN
;AMPLABEL:Channel %c - Button %n
;context=from-pstn
;signalling=fxs_ks
;faxdetect=incoming
;usecallerid=yes
;echocancel=yes
;echocancelwhenbridged=no
;echotraining=800
;group=0
;channel=1-2
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1

;Uncomment these lines if you have problems with the disconection of your analog
lines
;busydetect=yes
;busycount=3


immediate=no



/etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Wed Dec 26 23:46:40 2012
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

; Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER)
;;; line="1 WCTDM/4/0 FXSKS (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default

;;; line="2 WCTDM/4/1 FXSKS (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
callerid=
group=
context=default

;;; line="3 WCTDM/4/2 FXSKS (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 3
callerid=
group=
context=default

;;; line="4 WCTDM/4/3 FXSKS (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 4
callerid=
group=
context=default
11 years 4 months ago #8471 by maselva2012
I herewith attached Dahadi_tool images.
Attachments:
11 years 4 months ago #8472 by tim.june
Can you setup a custom inbound rule to playback music when called in like this:
[from-pstn-1]
exten => s,1,Answer()
exten => s,2,Playback(demo-instruct)
exten => s,n,Hangup()
Then see how it works.

Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
Skype: tim.jjune
11 years 4 months ago #8473 by maselva2012
Phone shows busy message right away (before seeing Starting simple switch on 'DAHDI/1-1' in console) as before.

Console message are as below:

trixbox1*CLI>
-- Starting simple switch on 'DAHDI/1-1'
-- Executing [s@from-pstn-1:1] Answer("DAHDI/1-1", "") in new stack
-- Executing [s@from-pstn-1:2] Playback("DAHDI/1-1", "demo-instruct") in new stack
-- <DAHDI/1-1> Playing 'demo-instruct.gsm' (language 'en')
trixbox1*CLI> core
abort clear restart set show stop
trixbox1*CLI> core show
application applications calls channel channels channeltype channeltypes codec codecs config file function functions globals
hint hints image license locks profile settings switches sysinfo threads translation uptime version warranty
trixbox1*CLI> core show calls
1 active call
12 calls processed
-- Executing [s@from-pstn-1:3] Hangup("DAHDI/1-1", "") in new stack
== Spawn extension (from-pstn-1, s, 3) exited non-zero on 'DAHDI/1-1'
-- Hungup 'DAHDI/1-1'
trixbox1*CLI> core show calls
0 active calls
12 calls processed
trixbox1*CLI>
11 years 4 months ago #8474 by maselva2012
Version information are as below.

[trixbox1.localdomain ~]# uname -a
Linux trixbox1.localdomain 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 07:39:04 EST 2010 i686 i686 i386 GNU/Linux


[trixbox1.localdomain ~]# asterisk -V
Asterisk 1.6.0.26-FONCORE-r78


[trixbox1.localdomain ~]# dahdi_cfg -vvv
DAHDI Tools Version - 2.3.0

DAHDI Version: 2.3.0.1
Echo Canceller(s): MG2
Configuration
======================


Channel map:

Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)
Channel 03: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 04)

4 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2
[trixbox1.localdomain ~]#
11 years 4 months ago #8475 by maselva2012
Hi Tim,

When I ran Show channels, it shows as OFFHook. There were no calls in the system.

trixbox1*CLI> dahdi show channel 1
Channel: 1LI>
File Descriptor: 16
Span: 1
Extension:
Dialing: no
Context: from-pstn-1
Caller ID:
Calling TON: 0
Caller ID name:
Mailbox: none
Destroy: 0
InAlarm: 0
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Busy Detection: yes
Busy Count: 3
Busy Pattern: 0,0
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
DND: no
Echo Cancellation:
128 taps
(unless TDM bridged) currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Offhook


trixbox1*CLI> core show calls
0 active calls
27 calls processed
trixbox1*CLI>
Time to create page: 0.046 seconds
Powered by Kunena Forum